package com.itheima.reggie.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    void addCategory(Category category);

    List<Category> findAll();

    void gengxin(Category category);

    int countDishByCategoryId(Long id);

    int countSetMealByCategoryId(Long id);

    void deleteCategory(Long id);
}
